﻿using System;

// this implementation based on code at http://z-maloumi.com/blog/2010/12/bing-map-add-custom-tile-google-map-openstreetmap-to-a-silverlight-application/

namespace MyFloridaHouse.libSvOpenDistricts.MapTileLayers
{
    public class OpenStreetMapsTileSource : CustomMapTile
    {
        public OpenStreetMapsTileSource() :
            base("http://tile.openstreetmap.org/{2}/{0}/{1}.png")
        { }

        public override Uri GetUri(int x, int y, int zoomLevel)
        {
            return new Uri(string.Format(this.UriFormat, x, y, zoomLevel));
        }
    }

}
